package hyj.qx.kuaican.service;

import hyj.qx.kuaican.model.CyOrder;
import hyj.qx.kuaican.model.Item;
import hyj.qx.kuaican.model.Order;
import hyj.qx.kuaican.model.OrderStatus;

import java.util.List;

public interface OrderRepository {
    void save(Order order);
    Order findById(String orderId);

    Order findUpOrderById(String orderId);

    void updateStatus(String orderId, OrderStatus status);


    void removeOrder(String orderId);


    Order addOrderMap(String orderId, Order order);

    CyOrder addCyOrderMap(String orderId, CyOrder cyOrder);


    List<CyOrder> findCyOrder();
}